Skip to main content
function | number
required
The function whose upvalue is set.
number
required
The index of the upvalue to set.
any
required
The replacement object. Must be of the same type.
Alias: setupvalue

Example

This script will set a function’s upvalue.